package com.component.mode;

import java.util.ArrayList;
import java.util.List;

import com.component.code.CommonCode;


public class ReturnInfo {

	private String type;
	private String info;
	private List<Button> buttons = new ArrayList<Button>();

	public ReturnInfo() {
		this.type = CommonCode.WINDOW_F;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public void setType(int type) {
		if (type == 1)
			this.type = CommonCode.WINDOW_T;
		else if (type == 2)
			this.type = CommonCode.WINDOW_F;
		else if (type == 3)
			this.type = CommonCode.WINDOW_P;
		else
			this.type = CommonCode.WINDOW_F;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public List<Button> getButtons() {
		return buttons;
	}

	public void setButtons(List<Button> buttons) {
		this.buttons = buttons;
	}

	public void addButton(Button button) {
		this.buttons.add(button);
	}
}
